--
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:0b18046d97766df70acf41da45ac27bc$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetInfo:getSheet() )
-- local sprite = display.newSprite( myImageSheet , {frames={sheetInfo:getFrameIndex("sprite")}} )
--

local SheetInfo = {}

SheetInfo.sheet =
{
    frames = {
    
        {
            -- apple/apple_01
            x=4,
            y=368,
            width=116,
            height=112,

            sourceX = 12,
            sourceY = 12,
            sourceWidth = 138,
            sourceHeight = 131
        },
        {
            -- apple/apple_02
            x=780,
            y=4,
            width=104,
            height=112,

            sourceX = 16,
            sourceY = 12,
            sourceWidth = 138,
            sourceHeight = 131
        },
        {
            -- apple/apple_03
            x=124,
            y=368,
            width=108,
            height=112,

            sourceX = 16,
            sourceY = 12,
            sourceWidth = 138,
            sourceHeight = 131
        },
        {
            -- background
            x=236,
            y=136,
            width=480,
            height=320,

        },
        {
            -- clouds/cloud_01
            x=720,
            y=284,
            width=144,
            height=92,

            sourceX = 156,
            sourceY = 32,
            sourceWidth = 480,
            sourceHeight = 320
        },
        {
            -- clouds/cloud_02
            x=720,
            y=380,
            width=128,
            height=76,

            sourceX = 344,
            sourceY = 12,
            sourceWidth = 480,
            sourceHeight = 320
        },
        {
            -- duck
            x=720,
            y=136,
            width=152,
            height=144,

            sourceX = 20,
            sourceY = 16,
            sourceWidth = 191,
            sourceHeight = 167
        },
        {
            -- floor
            x=236,
            y=4,
            width=540,
            height=128,

            sourceX = 4,
            sourceY = 28,
            sourceWidth = 550,
            sourceHeight = 156
        },
        {
            -- tree
            x=4,
            y=4,
            width=228,
            height=360,

            sourceX = 0,
            sourceY = 32,
            sourceWidth = 550,
            sourceHeight = 400
        },
    },
    
    sheetContentWidth = 888,
    sheetContentHeight = 484
}

SheetInfo.frameIndex =
{

    ["apple/apple_01"] = 1,
    ["apple/apple_02"] = 2,
    ["apple/apple_03"] = 3,
    ["background"] = 4,
    ["clouds/cloud_01"] = 5,
    ["clouds/cloud_02"] = 6,
    ["duck"] = 7,
    ["floor"] = 8,
    ["tree"] = 9,
}

function SheetInfo:getSheet()
    return self.sheet;
end

function SheetInfo:getFrameIndex(name)
    return self.frameIndex[name];
end

return SheetInfo
